home *** CD-ROM | disk | FTP | other *** search
/ PC World 2007 December / PCWorld_2007-12_cd.bin / domacnost a kancelar / autoit / autoit-v3-setup.exe / Examples / Helpfile / FileSetAttrib.au3 < prev    next >
Text File  |  2007-09-08  |  359b  |  9 lines

  1. ;mark all .au3 files in current directory as read-only and system
  2. If Not FileSetAttrib("*.au3", "+RS") Then
  3.     MsgBox(4096,"Error", "Problem setting attributes.")
  4. EndIf
  5.  
  6. ;make all .bmp files in C:\ and sub-directories writable and archived
  7. If Not FileSetAttrib("C:\*.bmp", "-R+A", 1) Then
  8.     MsgBox(4096,"Error", "Problem setting attributes.")
  9. EndIf